package com.HomeWorkhsp.Chapter08.homework.homework03;

public class Staff {
     private String name;
     private double salary;
     private int salMonth = 12;
     public Staff(double salary, String name) {
          this.salary = salary;
          this.name = name;
     }

     public double getSalary() {
          return salary;
     }

     public void setSalary(double salary) {
          this.salary = salary;
     }

     public int getSalMonth() {
          return salMonth;
     }

     public void setSalMonth(int salMonth) {
          this.salMonth = salMonth;
     }

     public String getName() {
          return name;
     }

     public void setName(String name) {
          this.name = name;
     }

     public void printSal(){
          System.out.println(salary * salMonth);
     }
}
